package com.hua.designpattern.structural.proxy;

public class GameProxy implements GameInterface {

	private GameInterface target;

	public GameProxy(GameInterface target) {
		super();
		this.target = target;
	}

	@Override
	public void login(String name) {
		System.out.println("proxy：proxy login");
		target.login(name);
	}

	@Override
	public void playGame() {
		target.playGame();

	}

	@Override
	public void logout(String name) {
		target.logout(name);
		System.out.println("proxy：proxy logout");
	}

}
